#ifndef SERVER_H
#define SERVER_H

#include <QThread>
#include <QRunnable>
class server : public QRunnable
{
public:
    server()=default;
    server(int i);
    void run ()override;
private:
    void server_1();
    void server_2();

private:
    int flag;
};

#endif // SERVER_H
